package com.intellagric.agriecom.module.agriecom_quotation;

import com.intellagric.common.pojo.LayuiDataGridResult;
import com.intellagric.common.pojo.ResponseMessage;
import com.intellagric.pojo.AgriecomProduce;
import com.intellagric.pojo.AgriecomQuotation;

import java.text.ParseException;
import java.util.List;

public interface QuotationService{
    //增加Quotattion
    ResponseMessage addQuotation(AgriecomQuotation quotattion);
    //根据id删除Quotation
    ResponseMessage deleteQuotation(String id);
    //根据id编辑Quotation
    ResponseMessage editQuotation(AgriecomQuotation quotation);
    //根据id查询Quotation
    AgriecomQuotation getQuotationById(String id);
    //查询全部的Quotation
    LayuiDataGridResult getQuotationList();
    //分页查询全部的Quotation
    LayuiDataGridResult getQuotationList(int page, int rows);

    //根据id批量删除Merchant
    ResponseMessage batchDeleteQuotation(String[] ids);

    //根据分类查询商品行情

    LayuiDataGridResult getQuotationByCategory(List<AgriecomProduce> list, int page, int limit);

    //价格变动
    ResponseMessage priceChange(String id, float price) throws ParseException;



    LayuiDataGridResult deleteByProIds(String[] ids);

    LayuiDataGridResult getquotationByKeyword(int page,int limit,String keyword);
}
